﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Sharp.Domain.Model;
using Sharp.Infrastructure;

namespace Sharp.Domain.PlatformBoundedContext.MessageModule.Aggregates
{
    public partial class Message : AggregateRoot, IStandardEntity
    {
        public Message()
        {
            MessageBoxes = new List<MessageBox>();
        }
        /// <summary>
        /// 标题
        /// </summary>
        [Required]
        public string Title { get; set; }
        /// <summary>
        /// 小标题
        /// </summary>
        public string Summary { get; set; }
        /// <summary>
        /// 内容
        /// </summary>
        public string Content { get; set; }
        /// <summary>
        /// 缩略图
        /// </summary>
        public string Img { get; set; }
 

        /// <summary>
        /// 发布时间
        /// </summary>
        public DateTime PublishTime { get; set; }
        /// <summary>
        /// 提前提醒,单位：秒
        /// </summary>
        public DateTime? RemindTime { get; set; }
 


        public DateTime? CheckInTime
        {
            get;
            set;
        }

        public Guid? CheckInUserId
        {
            get;
            set;
        }

        public DateTime? ModifiTime
        {
            get;
            set;
        }

        public Guid? ModifiedUserId
        {
            get;
            set;
        }
 

        public ICollection<MessageBox> MessageBoxes { get; set; }
    }
}
